package ltd.dujiabao.capability.domain.capmng.sync.newmodulespec;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import ltd.dujiabao.capability.domain.capmng.sync.Puller;
import ltd.dujiabao.capability.domain.capmng.sync.SyncCapabilityContext;

/**
 * @author : DuJiabao
 * @Project : ddd-capability
 * @Time : 2024/4/9 22:09
 * @Desc :
 */
@Component
public class NewModuleSpecPuller implements Puller {

    @Autowired
    private NewModuleSpecRepository newModuleSpecRepository;

    @Override
    public Object pullCapability(SyncCapabilityContext context) {
        return newModuleSpecRepository.findNewModuleSpec(context.getDevInfo().getDevId());
    }
}
